package com.qf.controller;

import com.qf.pojo.Address;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wbzs,
 * @date 2022/10/19,
 * @time 22:40,
 */
@RestController
@RequestMapping("/address")
public class AddressController {

    @GetMapping("/info/{id}")
    public Address findByid(@PathVariable Integer id){
        Address address = new Address();
        address.setId(id);
        address.setAddress("北京");
        return  address;
    }
}
